(0) Obligation:

Clauses:

perm1([], []).
perm1(Xs, .(X, Ys)) :- ','(select(X, Xs, Zs), perm1(Zs, Ys)).
select(X, .(X, Xs), Xs).
select(X, .(Y, Xs), .(Y, Zs)) :- select(X, Xs, Zs).

Query: perm1(g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

selectA(T59, .(T59, T60), T60).
selectA(T70, .(T68, T69), .(T68, X78)) :- selectA(T70, T69, X78).
perm1B([], []).
perm1B(.(T27, T28), .(T27, T29)) :- perm1B(T28, T29).
perm1B(.(T37, T38), .(T39, T40)) :- selectA(T39, T38, X45).
perm1B(.(T37, T38), .(T39, T46)) :- ','(selectA(T39, T38, T45), perm1B(.(T37, T45), T46)).

Query: perm1B(g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
perm1B_in: (b,f)
selectA_in: (f,b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → U2_GA(T27, T28, T29, perm1B_in_ga(T28, T29))
PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → PERM1B_IN_GA(T28, T29)
PERM1B_IN_GA(.(T37, T38), .(T39, T40)) → U3_GA(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
PERM1B_IN_GA(.(T37, T38), .(T39, T40)) → SELECTA_IN_AGA(T39, T38, X45)
SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → U1_AGA(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → SELECTA_IN_AGA(T70, T69, X78)
PERM1B_IN_GA(.(T37, T38), .(T39, T46)) → U4_GA(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_GA(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → PERM1B_IN_GA(.(T37, T45), T46)

The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
PERM1B_IN_GA(x1, x2)  =  PERM1B_IN_GA(x1)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
SELECTA_IN_AGA(x1, x2, x3)  =  SELECTA_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x2, x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → U2_GA(T27, T28, T29, perm1B_in_ga(T28, T29))
PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → PERM1B_IN_GA(T28, T29)
PERM1B_IN_GA(.(T37, T38), .(T39, T40)) → U3_GA(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
PERM1B_IN_GA(.(T37, T38), .(T39, T40)) → SELECTA_IN_AGA(T39, T38, X45)
SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → U1_AGA(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → SELECTA_IN_AGA(T70, T69, X78)
PERM1B_IN_GA(.(T37, T38), .(T39, T46)) → U4_GA(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_GA(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → PERM1B_IN_GA(.(T37, T45), T46)

The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
PERM1B_IN_GA(x1, x2)  =  PERM1B_IN_GA(x1)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
SELECTA_IN_AGA(x1, x2, x3)  =  SELECTA_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x2, x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 5 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → SELECTA_IN_AGA(T70, T69, X78)

The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
SELECTA_IN_AGA(x1, x2, x3)  =  SELECTA_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SELECTA_IN_AGA(T70, .(T68, T69), .(T68, X78)) → SELECTA_IN_AGA(T70, T69, X78)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
SELECTA_IN_AGA(x1, x2, x3)  =  SELECTA_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

SELECTA_IN_AGA(.(T68, T69)) → SELECTA_IN_AGA(T69)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • SELECTA_IN_AGA(.(T68, T69)) → SELECTA_IN_AGA(T69)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PERM1B_IN_GA(.(T37, T38), .(T39, T46)) → U4_GA(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → PERM1B_IN_GA(.(T37, T45), T46)
PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → PERM1B_IN_GA(T28, T29)

The TRS R consists of the following rules:

perm1B_in_ga([], []) → perm1B_out_ga([], [])
perm1B_in_ga(.(T27, T28), .(T27, T29)) → U2_ga(T27, T28, T29, perm1B_in_ga(T28, T29))
perm1B_in_ga(.(T37, T38), .(T39, T40)) → U3_ga(T37, T38, T39, T40, selectA_in_aga(T39, T38, X45))
selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))
U3_ga(T37, T38, T39, T40, selectA_out_aga(T39, T38, X45)) → perm1B_out_ga(.(T37, T38), .(T39, T40))
perm1B_in_ga(.(T37, T38), .(T39, T46)) → U4_ga(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_ga(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → U5_ga(T37, T38, T39, T46, perm1B_in_ga(.(T37, T45), T46))
U5_ga(T37, T38, T39, T46, perm1B_out_ga(.(T37, T45), T46)) → perm1B_out_ga(.(T37, T38), .(T39, T46))
U2_ga(T27, T28, T29, perm1B_out_ga(T28, T29)) → perm1B_out_ga(.(T27, T28), .(T27, T29))

The argument filtering Pi contains the following mapping:
perm1B_in_ga(x1, x2)  =  perm1B_in_ga(x1)
[]  =  []
perm1B_out_ga(x1, x2)  =  perm1B_out_ga
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
PERM1B_IN_GA(x1, x2)  =  PERM1B_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PERM1B_IN_GA(.(T37, T38), .(T39, T46)) → U4_GA(T37, T38, T39, T46, selectA_in_aga(T39, T38, T45))
U4_GA(T37, T38, T39, T46, selectA_out_aga(T39, T38, T45)) → PERM1B_IN_GA(.(T37, T45), T46)
PERM1B_IN_GA(.(T27, T28), .(T27, T29)) → PERM1B_IN_GA(T28, T29)

The TRS R consists of the following rules:

selectA_in_aga(T59, .(T59, T60), T60) → selectA_out_aga(T59, .(T59, T60), T60)
selectA_in_aga(T70, .(T68, T69), .(T68, X78)) → U1_aga(T70, T68, T69, X78, selectA_in_aga(T70, T69, X78))
U1_aga(T70, T68, T69, X78, selectA_out_aga(T70, T69, X78)) → selectA_out_aga(T70, .(T68, T69), .(T68, X78))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
selectA_in_aga(x1, x2, x3)  =  selectA_in_aga(x2)
selectA_out_aga(x1, x2, x3)  =  selectA_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x2, x5)
PERM1B_IN_GA(x1, x2)  =  PERM1B_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PERM1B_IN_GA(.(T37, T38)) → U4_GA(T37, selectA_in_aga(T38))
U4_GA(T37, selectA_out_aga(T39, T45)) → PERM1B_IN_GA(.(T37, T45))
PERM1B_IN_GA(.(T27, T28)) → PERM1B_IN_GA(T28)

The TRS R consists of the following rules:

selectA_in_aga(.(T59, T60)) → selectA_out_aga(T59, T60)
selectA_in_aga(.(T68, T69)) → U1_aga(T68, selectA_in_aga(T69))
U1_aga(T68, selectA_out_aga(T70, X78)) → selectA_out_aga(T70, .(T68, X78))

The set Q consists of the following terms:

selectA_in_aga(x0)
U1_aga(x0, x1)

We have to consider all (P,Q,R)-chains.

(21) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

PERM1B_IN_GA(.(T37, T38)) → U4_GA(T37, selectA_in_aga(T38))
U4_GA(T37, selectA_out_aga(T39, T45)) → PERM1B_IN_GA(.(T37, T45))
PERM1B_IN_GA(.(T27, T28)) → PERM1B_IN_GA(T28)

Strictly oriented rules of the TRS R:

selectA_in_aga(.(T59, T60)) → selectA_out_aga(T59, T60)
selectA_in_aga(.(T68, T69)) → U1_aga(T68, selectA_in_aga(T69))
U1_aga(T68, selectA_out_aga(T70, X78)) → selectA_out_aga(T70, .(T68, X78))

Used ordering: Knuth-Bendix order [KBO] with precedence:
PERM1BINGA1 > U4GA2 > selectAinaga1 > U1aga2 > selectAoutaga2 > .2

and weight map:

selectA_in_aga_1=1
PERM1B_IN_GA_1=1
._2=1
selectA_out_aga_2=2
U1_aga_2=1
U4_GA_2=0

The variable weight is 1

(22) Obligation:

Q DP problem:
P is empty.
R is empty.
The set Q consists of the following terms:

selectA_in_aga(x0)
U1_aga(x0, x1)

We have to consider all (P,Q,R)-chains.

(23) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(24) YES